﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Logistics.SignIn
{
    public interface ISignInAppService
    {
        /// <summary>
        /// 登录接口
        /// </summary>
        /// <param name="accountNumber">用户名</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        Task<int> PostSignEfInAsync(string accountNumber, string password);

        /// <summary>
        /// 验证账号是否存在
        /// </summary>
        /// <param name="accountNumber"></param>
        /// <returns></returns>
        Task<int> VerifyAccountNumber(string accountNumber);

        /// <summary>
        /// 发送邮件
        /// </summary>
        /// <param name="mailbox"></param>
        void SendMailbox(string mailbox);

        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="accountNumber"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        Task<int> PutChangePassword(string accountNumber, string password);
    }
}
